﻿using AdminSystem.Application.Admins.Dto;
using AdminSystem.Domain;

namespace AdminSystem.Application.Admins
{
    public interface IAdminService
    {
        /// <summary>
        /// 添加方法
        /// </summary>
        /// <param name="createUpdateDto"></param>
        /// <returns></returns>
        Task<ResultDto<AdminDto>> CreateAsync(CreateUpdateAdminDto createUpdateDto);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<ResultDto<int>> DeleteAsync(int Id);

        /// <summary>
        /// 查询
        /// </summary>
        /// <returns></returns>
        Task<ResultDto<List<AdminDto>>> QueryAsync();

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="loginDto"></param>
        /// <returns></returns>
        Task<ResultDto<string>> LoginAsync(LoginDto loginDto);

        /// <summary>
        /// 获取用户信息
        /// </summary>
        void GetUserInfo();
    }
}